import service from "./service";
import { v4 } from "uuid";
// 采集方案
const url = "/features";

export function createFeature(feature: any) {
  return service.post(url + "/create", { feature });
}

export function updateFeature(feature: any) {
  return service.patch(url + `/${feature.id}/update`, { feature });
}

export function removeFeature(id: string) {
  return service.delete(url + `/${id}/remove`);
}

export function getOneFeature(id:string){
    return service.get(url + `/${id}/detail`);  
}
